<svg xmlns="http://www.w3.org/2000/svg">
<path/>

<script xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
var x=document.getElementsByTagName('path')[0];
var y = x.pathSegList;
var z = x.createSVGPathSegMovetoRel(0,0);
y.appendItem(z,0);
y.replaceItem(z, 0);
]]></script>
</svg>